# Migrate IRQs to core 0
for IRQ in $(ls /proc/irq); do
    if [[ -x "/proc/irq/${IRQ}" && ${IRQ} != "0" ]]; then
        echo ${IRQ}
        echo 1> /proc/irq/${IRQ}/smp_affinity
    fi
    echo 1 > /proc/irq/default_smp_affinity
done
